<?php
/**
 *
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */

$title = __d('cake_dev', 'Expertise, finance, gestion');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $title ?>:
		<?php echo $title_for_layout; ?>
	</title>
	
	<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700" rel="stylesheet" />
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css(array('admin_all', 'admin.category.css'));
		echo $this->Html->script(array('jquery.min', 'admin.main.js', 'admin.page.js', 'admin.category.js'));

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
	<script type="text/javascript">
		tinymce.init({
			selector: "textarea",
			external_plugins: {
				"jbimages": "/tinymce_plugins/jbimages/plugin.js"
			},
			relative_urls: false,
			plugins: [
				 "advlist autolink link image jbimages lists charmap print preview hr anchor pagebreak spellchecker",
				 "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
				 "save table contextmenu directionality emoticons template paste textcolor"
		    ],
		    toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages",
		 });
	</script>
</head>
<body><div id="wrapper">
		<div id="content">
			<div class="c1">
				<div class="controls">
					<nav class="links">
						<ul>
							<li><a href="#" class="ico1">Messages <span class="num">26</span></a></li>
							<li><a href="#" class="ico2">Alerts <span class="num">5</span></a></li>
							<li><a href="#" class="ico3">Documents <span class="num">3</span></a></li>
						</ul>
					</nav>
					<div class="profile-box">
						<span class="profile">
							<a href="#" class="section">
								<span class="text-box">
									Welcome
									<strong class="name"><?php echo ($userData['username']); ?></strong>
								</span>
							</a>
							<a href="#" class="opener">opener</a>
						</span>
						<?php echo $this->Html->link('On', array('plugin' => 'users', 'controller' => 'users', 'action' => 'logout'), array('class' => 'btn-on')); ?>
					</div>
				</div>
				<div class="tabs">
					<div class="tab">
						<article>
							<div class="text-section">
									
								<ul class="states">
									<li class="error"><?php echo $this->Session->flash('error') ?></li>
									<li class="warning"><?php echo $this->Session->flash('warning') ?></li>
									<li class="succes"><?php echo $this->Session->flash('success') ?></li>
								</ul>

								<?php echo $this->fetch('content'); ?>
							</div>
						</article>
					</div>
				</div>
			</div>
		</div>
		<aside id="sidebar">
			<strong class="logo"><a href="/" target="_blank">efg</a></strong>
			<ul class="tabset buttons">
				<li <?php if(strtolower($this->request['controller']) == 'adminpages') echo 'class="active"'?>>
					<a href="/AdminPages" class="ico3"><span>Pages</span><em></em></a>
					<span class="tooltip"><span>Pages</span></span>
				</li>
				<li <?php if(strtolower($this->request['controller']) == 'admincategories') echo 'class="active"'?>>
					<a href="/AdminCategories" class="ico4"><span>Categories</span><em></em></a>
					<span class="tooltip"><span>Categories</span></span>
				</li>
				<li <?php if(strtolower($this->request['controller']) == 'admingallery') echo 'class="active"'?>>
					<a href="#tab-2" class="ico2"><span>Gallery</span><em></em></a>
					<span class="tooltip"><span>Gallery</span></span>
				</li>
				<li <?php if(strtolower($this->request['controller']) == 'adminsettings') echo 'class="active"'?>>
					<a href="#tab-8" class="ico8"><span>Settings</span><em></em></a>
					<span class="tooltip"><span>Settings</span></span>
				</li>
			</ul>
			<span class="shadow"></span>
		</aside>
	</div>
</body>
</html>
